package com.ciwong.epaper.modules.bookstore.ui;

import com.ciwong.epaper.modules.bookstore.bean.BannerBean;
import com.ciwong.epaper.modules.cordva.BaseHtmlActicity;
import com.ciwong.epaper.util.IntentFlag;
import com.ciwong.libs.utils.CWLog;

/**
 * Created by Administrator on 2018/1/5.
 */

public class BannerAdActivity   extends BaseHtmlActicity{


    private BannerBean mBannerBean;

    @Override
    protected void preCreate() {
        super.preCreate();
        CWLog.i(" BannerAdActivity:", "run");
        mBannerBean= (BannerBean) getIntent().getSerializableExtra(IntentFlag.INTENT_FLAG_OBJ);
        CWLog.d(" precreate_getLinkAddress###",mBannerBean.getLinkAddress());
    }

    @Override
    protected void loadData() {
        super.loadData();

        if(null != mBannerBean)
        {
            String url = mBannerBean.getLinkAddress();
            setStartURL(url);
            loadUrl(startURL.toString());
        }

    }


}
